package unit1_1009.test4;

public class Test {

	public static void main(String[] args) {
		/*
		 * 写测试类，对计算器类Calculator的各种算术运算功能进行测试。
		 */
		Calculator calculator = new Calculator();
		double a=456666;
		double b=244333;
		System.out.println("456666+244333="+calculator.add(a, b));
		System.out.println("456666-244333="+calculator.subtract(a, b));
		System.out.println("456666*244333="+calculator.mutiply(a, b));
		System.out.println("456666/244333="+calculator.divide(a, b));
		System.out.println("456666%244333="+calculator.mo(a, b));
		
		double c=4;
		double d=0.5;
		System.out.println("4^1/2="+calculator.pow(c, d));
		
	}

}
